/*
 * @Author: yangrongxin
 * @Date: 2021-08-04 17:09:15
 * @LastEditors: yangrongxin
 * @LastEditTime: 2021-08-24 14:16:36
 */
import RequestDecorator, { Controller } from '../decorator';

// 存储下单相关接口
@Controller('/customer')
class Order {
  name = 'Order';
  // 下单
  @RequestDecorator.Post()
  static placeOrder = '/order/placeOrderMeasureTable';

  // 支付
  @RequestDecorator.Post()
  static pay = '/pay/pay';

  // 获取小程序支付票据
  @RequestDecorator.Post()
  static getPayTicket = '/pay/getParams';

  // 量表评测列表--支付状态
  @RequestDecorator.Post()
  static getOrderList = '/order/getMeasureTableList';

  // 通过订单id获取对应的测评信息
  @RequestDecorator.Post()
  static getParamsWithOrderId = '/measureTableRecord/queryByOrderId';
}

export default Order;
